package hsp.admin.app.base.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "用户角色关系表")
@Data
@TableName("base_user_role_relation")
public class UserRoleRelationPO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户主键")
    @NotBlank
    @TableField("user_id")
    private Long userId;

    @Schema(description = "角色主键")
    @NotBlank
    @TableField("role_id")
    private Long roleId;

}
